{* Smarty *}
{*
 *  This file is part of Urd.
 *
 *  Urd is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *  Urd is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program. See the file "COPYING". If it does not
 *  exist, see <http://www.gnu.org/licenses/>.
 *
 * $LastChangedDate: 2008-06-14 11:01:35 +0200 (Sat, 14 Jun 2008) $
 * $Rev: 1161 $
 * $Author: styck $
 * $Id: ajax_showtransfers.tpl 1161 2008-06-14 09:01:35Z styck $
 *}
{* Ajax page, doesn't need a head/foot tpl *}
<div id="hideoverlay">
<img src="{$IMGDIR}/icon_cancel.png" class="buttonlike" alt="Close" title="Close" onclick="javascript:thisdiv=document.getElementById('usereditdiv'); ToggleClass(thisdiv, 'edituseroff'); ToggleClass(thisdiv,'edituseron');"/>
</div>
<h2>{if $id eq 'new'}{$LN_users_addnew}{else}{$LN_users_edit}{/if} </h2>
<div>
<input type="hidden" name="challenge" id="challenge" value="{$challenge}"/>
<input type="hidden" name="id" id="id" value="{$id}"/></td>
</div>
<table>
<tr><td colspan="2">{$LN_users_username}</td><td colspan="2"><input type="text" name="username" id="username" value="{$name|escape}" size="{$text_box_size}"/></td></tr>
<tr><td colspan="2">{$LN_users_fullname}</td><td colspan="2"><input type="text" name="fullname" id="fullname" value="{$fullname|escape}" size="{$text_box_size}"/></td></tr>
<tr><td colspan="2">{$LN_users_email}</td><td colspan="2"><input type="text" name="email" id="email" value="{$email|escape}" size="{$text_box_size}"/></td></tr>
<tr><td colspan="2">{$LN_users_password}</td><td colspan="2">
{if $id eq 'new' or $emailallowed eq 0}
                <input type="text" name="password" id="password" size="{$text_box_size}"/>
        {else}
                <input type="hidden" name="password" id="password" value=''/>
                &nbsp;
        {/if}
</td> </tr>
<tr><td>{$LN_users_isadmin}</td><td><input type="checkbox" id="isadmin" name="isadmin" {if $isadmin eq $USER_ADMIN} checked="checked"{/if}/></td>
<td>{$LN_users_rights}</td><td><input type="checkbox" id="seteditor" name="rights" {if $rights eq 1}checked="checked"{/if} value="1"/></td></tr>
<tr><td>{$LN_users_post}</td><td><input type="checkbox" id="post" name="post" {if $post eq 1}checked="checked"{/if} value="1"/></td>
<td>{$LN_users_active}</td><td><input type="checkbox" id="isactive" name="isactive" {if $isactive eq $USER_ACTIVE} checked="checked"{/if}/></td></tr>
<td>{$LN_users_autodownload}</td><td><input type="checkbox" id="autodownload" name="autodownload" {if $autodownload eq 1} checked="checked"{/if}/></td></tr>

<tr><td>
{if $id eq 'new'}
	<input type="submit" name="add" value="{$LN_add}" onclick="javascript:update_user();" class="submit"/>
{else}
	<input type="submit" name="apply" value="{$LN_apply}" class="submit" onclick="javascript:update_user();"/>
{/if}
</td>
</tr>


</table>

